package com.chuang.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chuang.server.pojo.Bill;
import com.chuang.server.pojo.ResultBean;
import com.chuang.server.pojo.User;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * 账单表 Mapper 接口
 * </p>
 *
 * @author vicente
 * @since 2022-01-15
 */
@Mapper
public interface BillMapper extends BaseMapper<Bill> {
    @MapKey("id")
    List<Map<String, Object>> billList();

    IPage<Bill> selectPageVo(Page<?> page, @Param("state") int i);
}
